#import "FlutterDemo4Plugin.h"

//#if __has_include(<flutter_demo4_plugin/flutter_demo4_plugin-Swift.h>)
//#import <flutter_demo4_plugin/flutter_demo4_plugin-Swift.h>
//#else
//// Support project import fallback if the generated compatibility header
//// is not copied when this plugin is created as a library.
//// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
//#import "flutter_demo4_plugin-Swift.h"
//#endif


#import <mars/xlog/xlogger.h>
#import <mars/app/app.h>

//#import "appender-swift-bridge.h"
//#import "flutter_demo4_plugin_Bridging-Header.h"
//#import "Flutter-Bridging-Header.h"
//#import "flutter_demo4_plugin-Swift.h"
//#import "stn_callback.h"
@implementation FlutterDemo4Plugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
    
//    [XLogWrapper registerWithRegistrar:registrar];
    
//    [SwiftImPlugin_new  registerWithRegistrar:registrar];
  FlutterMethodChannel* channel = [FlutterMethodChannel
      methodChannelWithName:@"flutter_demo4_plugin"
            binaryMessenger:[registrar messenger]];
  FlutterDemo4Plugin* instance = [[FlutterDemo4Plugin alloc] init];
  [registrar addMethodCallDelegate:instance channel:channel];
}

//- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
//  if ([@"getPlatformVersion" isEqualToString:call.method]) {
//    result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
//  } else {
//    result(FlutterMethodNotImplemented);
//  }
//}

@end
